-- GENERATED SPELL FOR [Hellfire Wardling] --


function spell0_22259(pUnit, Event) --@Summoned Demon,Self--
pUnit:FullCastSpellOnTarget(7741,pUnit)
pUnit:RegisterEvent('Sorts_22259', 531, 1)
end

function Sorts_22259(pUnit, Event)
local choix_sorts_22259 = math.random(0, 0)
if choix_sorts_22259 == 0 then
pUnit:RegisterEvent('spell0_22259', 1, 1)
end
end

function mob22259_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22259', math.random(1500, 3000), 1)
end

function mob22259_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22259_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22259_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22259, 1, 'mob22259_Action')
RegisterUnitEvent(22259, 2, 'mob22259_Leave')
RegisterUnitEvent(22259, 3, 'mob22259_Kill')
RegisterUnitEvent(22259, 4, 'mob22259_Die')
